package j08;

public class Cat {
    private int age;
    //公开的
    public void f1(){
        System.out.println("i am f1");

        //可以类中调用
        f2();
    }

    private void f2(){
        System.out.println("i am f2");

//        f1();
    }
}

class CatTest{
    public static void main(String[] args) {
        Cat c1 = new Cat();
        c1.f1();
//        c1.f2();
    }
}
